<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-sm-2 col-sm-offset-1"><b>{:__('Required_form')}</b></label>
    </div>
    <div class="form-group">
        <label for="req-common_field_id_list" class="control-label col-xs-12 col-sm-2">{:__('Common_field')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control selectpage" id="req-common_field_id_list" data-multiple="true" name="row[required_form][common_field_id_list]" value="{$row.required_form.common_field_id_list}">
        </div>
    </div>
    <div class="form-group">
        <label for="row[required_form][rich_field_list]" class="control-label col-xs-12 col-sm-2">{:__('Rich_field_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="row[required_form][rich_field_list]" class="form-control editor" rows="5" name="row[required_form][rich_field_list]" cols="50">{$row.required_form.rich_field_list??""}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-required_form-can_modify" class="control-label col-xs-12 col-sm-2">{:__('Can_modify')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" id="c-required_form-can_modify">
                <label for="row[required_form][can_modify]-true"><input id="row[required_form][can_modify]-true" name="row[required_form][can_modify]" type="radio" value="true"
                                                                        {if condition="isset($row['required_form']['can_modify']) && $row['required_form']['can_modify'] == 'true'" value="true"}checked{/if} /> 是</label>
                <label for="row[required_form][can_modify]-false"><input id="row[required_form][can_modify]-false" name="row[required_form][can_modify]" type="radio" value="false"
                                                                         {if condition="isset($row['required_form']['can_modify']) && $row['required_form']['can_modify'] == 'true'" value="true"}checked{/if} /> 否</label>
            </div>
        </div>
    </div>
    <hr>
    <div class="form-group">
        <label class="control-label col-sm-2 col-sm-offset-1"><b>{:__('Optional_form')}</b></label>
    </div>
    <div class="form-group">
        <label for="opt-common_field_id_list" class="control-label col-xs-12 col-sm-2">{:__('Common_field')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control selectpage" id="opt-common_field_id_list" data-multiple="true" name="row[optional_form][common_field_id_list]" value="{$row.optional_form.common_field_id_list}">
        </div>
    </div>
    <div class="form-group">
        <label for="row[optional_form][rich_field_list]" class="control-label col-xs-12 col-sm-2">{:__('Rich_field_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="row[optional_form][rich_field_list]" class="form-control editor" rows="5" name="row[optional_form][rich_field_list]" cols="50">{$row.optional_form.rich_field_list??""}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-optional_form-can_modify" class="control-label col-xs-12 col-sm-2">{:__('Can_modify')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" id="c-optional_form-can_modify">
                <label for="row[optional_form][can_modify]-true"><input id="row[optional_form][can_modify]-true" name="row[optional_form][can_modify]" type="radio" value="true"
                                                                        {if condition="isset($row['required_form']['can_modify']) && $row['required_form']['can_modify'] == 'true'" value="true"}checked{/if}> 是</label>
                <label for="row[optional_form][can_modify]-false"><input id="row[optional_form][can_modify]-false" name="row[optional_form][can_modify]" type="radio" value="false"
                                                                         {if condition="isset($row['required_form']['can_modify']) && $row['required_form']['can_modify'] == 'true'" value="true"}checked{/if}> 否</label>
            </div>
        </div>
    </div>
    <hr>

    <div class="form-group">
        <label for="c-service_statement_name" class="control-label col-xs-12 col-sm-2">{:__('Service_statement_name')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="input-group">
                <span class="input-group-addon">名称</span>
                <input id="c-service_statement_name" class="form-control" name="row[service_statement][name]" type="text" value="{$row.service_statement.name}">
            </div>
            <div class="input-group">
                <span class="input-group-addon">URL</span>
                <input id="c-service_statement_name-url" class="form-control" name="row[service_statement][url]" type="text" value="{$row.service_statement.url}">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-bind_old_card" class="control-label col-xs-12 col-sm-2">{:__('Bind_old_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <span class="input-group-addon">名称</span>
                <input id="c-bind_old_card" class="form-control" name="row[bind_old_card][name]" type="text" value="{$row.bind_old_card.name}">
            </div>
            <div class="input-group">
                <span class="input-group-addon">URL</span>
                <input class="form-control" name="row[bind_old_card][url]" type="text" value="{$row.bind_old_card.url}">
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
